#pragma once
#include"public_struct.h"
void deleteNode(ListNode* node) {
	if (!node->next) {
		delete node;
		return;
	}
	node->val = node->next->val;
	ListNode* p = node->next;
	node->next = node->next->next;
	delete p;
}